package com.netflix;

import com.netflix.feign.DemoProviderFeign;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ytj
 * @date 2021/12/16
 */
@RestController
public class DemoConsumerController {
    @Resource
    private DemoProviderFeign demoProviderFeign;

    @GetMapping("/hello")
    public String hello(String name){
        String response=this.demoProviderFeign.test(name);
        return "consumer:"+response;
    }
}
